<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备固件升级包</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form">
  <input type="hidden" name="typeId" value="$!{typeId}"/>
  <div class="layui-form-item">
    <label class="layui-form-label">固件版本号</label>
    #if($versionNumber)
    <input type="hidden" name="versionNumber" value="$!{versionNumber}"/>
    <div class="layui-form-mid layui-word-aux">$!{versionNumber}</div>
    #else
    <div class="layui-input-block">
      <input type="text" name="versionNumber" autocomplete="off" class="layui-input">
    </div>
    #end
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">固件升级包</label>
    <div class="layui-input-block">
      <input type="text" name="packagePath" class="form-control" value="$!{packagePath}">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">升级包CRC</label>
    <div class="layui-input-block">
      <input type="text" name="packageCRC" placeholder="请输入固件升级包CRC" autocomplete="off" class="layui-input" value="$!{packageCRC}">
    </div>
  </div>
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-form-submit" id="LAY-form-submit" value="确认">
  </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
}).extend({
  index: 'lib/index'
}).use(['index', 'form'],function (){
  $('input[name="packagePath"]').jfFileManager({
    resDomain:'${resDomain}',
    token:'$!{resToken}',
    multiple:false,
    path:'/device/upgrade/cdcz',
    parent:parent
  });
})
</script>
</body>
</html>